<%= f.fields_for :product_colors do |pc| %>
    <div class="fields">
        <%= pc.text_field :color_name %>
        <%= pc.hidden_field :_destroy %>
        <%= link_to_function (image_tag "delete-icon.png"), "remove_fields(this)", :class => "remove_condition_field" %>
    </div>
<% end %>

<div class="add-product-color-container">
    <%= link_to_add_colors 'Agregar otro', f, :product_colors %>
</div>
